//
//  ExTableView.swift
//  swiftTXH
//
//  Created by Mac mini on 2020/6/5.
//  Copyright © 2020 Mac mini. All rights reserved.
//

import UIKit

extension UITableView {
    public final func cnm_registerCell<T: UITableViewCell>(_ cellClass: T.Type) where T: CNM_CellReuseId {
        register(T.self, forCellReuseIdentifier: cellClass.cnm_reuseIdentifier)
    }
    
    public final func cnm_registerCell<T: UITableViewCell>(_ cellClass: T.Type) where T: CNM_CellReuseId & CNM_Nib {
        self.register(cellClass.cnm_nib, forCellReuseIdentifier: cellClass.cnm_reuseIdentifier)
    }
}
